package com.geovis.emergency.spd.entity.filing.pojo;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.geovis.emergency.spd.entity.filing.entity.TbPlanFilings;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.function.Function;

@Getter
@AllArgsConstructor
public enum  GroupStatTypeEnum {
    LEVEL("LEVEL", TbPlanFilings::getPlanLevel),
    TYPE("TYPE",TbPlanFilings::getEventType),
    DEPT("DEPT",TbPlanFilings::getPreparationUnitId);

    private String code;

    private Function<TbPlanFilings,String> function;
}
